package main

import (
	usercontroller "07demo-gin-mongodb/controller"
	"07demo-gin-mongodb/mongodb"
	gogin "github.com/gin-gonic/gin"
)

func main() {
	mongodb.InitMongo()
	router := gogin.Default()
	// 添加一个GET路由 http://localhost:8080/hello
	//router.GET("/user", usercontroller.SelectOneGet)
	router.GET("/userlist", usercontroller.List)
	router.Run(":8090")
}
